package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.MajorDao;
import cn.edu.sdjzu.xg11.domain.Major;

@Service
public class MajorService {
	@Autowired
	private MajorDao majorDao;

	public Collection<Major> getMajors() {
		return majorDao.getMajors();
	}
	
	public Major getMajor(Integer id){
		return majorDao.getMajor(id);
	}
}
